﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="Web.Admin.CatMgr.Manage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../css/style.css" rel="stylesheet" />
    <script src="../js/jquery-1.5.2.js"></script>
    <script src="../js/adminjs.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="">
            <div class="list">
                <h3>类别管理</h3>
                <div class="listtable">
                    <table>
                        <thead>
                            <tr class="th">
                                <th width="5%">序号</th>
                                <th width="65%">名称</th>
                                <th width="5%">预览</th>
                                <th width="25%">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="rpCat" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <td class="catSortInput">
                                            <input type="text"  onclick="this.select();" name='sort[<%#Eval("CatId") %>]' value='<%#Eval("Diplayorder") %>' /></td>
                                        <td class="catName" catid='<%#Eval("CatId") %>' title="点击可修改类别"><%#Eval("Name") %></td>
                                        <td><a href='<%# Eval("Url") %>' target="_blank">
                                            <img src="../images/vlog.gif" /></a></td>
                                        <td>
                                            <asp:LinkButton ID="lkbDelete" runat="server" CommandArgument='<%#Eval("CatId") %>' OnCommand="lkbDelete_Command" OnClientClick="return confirm('你确定要删除这个类别吗，若删除类别，该类别下的文章将一并删除')">删除</asp:LinkButton></td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>

                    </table>
                    <div class="catManageBtnBox">
                        <asp:LinkButton ID="lkbUpdateSort" runat="server" OnClick="lkbUpdateSort_Click" CssClass="btnbeauty">更新排序</asp:LinkButton>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
